#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys, os, pygame
from random import randint
from utils import load_image
from pygame.locals import *
from pygame.transform import *
from math import sqrt
from poderes import * 
import GIFImage

width, height = 600, 400

class Charmeleon(pygame.sprite.Sprite):
    def __init__(self, startpos):
        pygame.sprite.Sprite.__init__(self)
        self.life = 100
        self.experiencia = 50
        self.image = GIFImage.GIFImage('img/sprites/5.gif') 
        self.rect = load_image('sprites/5.png')[1]
        self.rect.centerx, self.rect.centery = startpos
        #self.pokebola(startpos)

    def get_pos(self):
        return (self.rect.centerx, self.rect.centery)

    def pokebola(self,startpos):
        self.image, self.rect = load_image('itens/448229.gif')
        self.rect.centerx, self.rect.centery = startpos
        #self.pokemon(startpos)

    def pokemon(self, startpos):
        self.image, self.rect = load_image('sprites/5.png')
        self.rect.centerx, self.rect.centery = startpos

class Pidgey(pygame.sprite.Sprite):
    def __init__(self, startpos):
        pygame.sprite.Sprite.__init__(self)
        self.life = 100
        self.experiencia = 0
        self.image, self.rect = load_image('sprites/16.png')
        self.rect.centerx, self.rect.centery = startpos


    def get_pos(self):
        return (self.rect.centerx, self.rect.centery)

